﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace FaultBackService
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {



            //string[] args = new string[] { " " };
            //FaultBackService x = new FaultBackService();
            //if (args.Length > 0)
            //{
            //    Console.WriteLine("==========开始使用控制台调试Windows服务==========");
            //    x.Start(args);
            //    Console.ReadLine();
            //}
            //else
            //{
            //    ServiceBase[] ServicesToRunTemp;
            //    ServicesToRunTemp = new ServiceBase[] { x };
            //    ServiceBase.Run(ServicesToRunTemp);
            //}

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new FaultBackService()
            };
            ServiceBase.Run(ServicesToRun);

        }
    }
}
